﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    using System.Data;

    public class KhoaBLL : DAL.KhoaDAL
    {   
        
        

        public string CreateID()
        {
            string result = Select_max().Trim();
            //if (result.Length > 2)
            //{
            //    result = result.Substring(2);
            //}
            //else result = "";

            Int32 i =0;
            i = Convert.ToInt32(result);
            i++;

            
            return "K" +i.ToString("0#");
           
        }

    }
}
